<template>
  <view class="my-container">
    <login v-if="!token"></login>
    <user v-else></user>
  </view>
</template>

<script>
  import badgeMixins from '../../mixins/badgeMixins.js'
  // 从vuex按需导入辅助函数
  import { mapState } from 'vuex'
  export default {
    mixins: [badgeMixins],
    data() {
      return {
        
      };
    },
    computed:{
      ...mapState('user', ['token'])
    }
  }
</script>

<style lang="scss">
page, .my-container {
  height: 100%;
}
</style>
